/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package edu.pku.sei.ocl.adapter.xmlecore;

import org.eclipse.emf.common.util.BasicEMap;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EFactory;
import org.w3c.dom.Attr;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

import edu.pku.sei.ocl.adapter.EcoreAdapter;

/**
 * <!-- begin-user-doc -->
 * The <b>Factory</b> for the model.
 * It provides a create method for each non-abstract class of the model.
 * <!-- end-user-doc -->
 * @see edu.pku.sei.ocl.adapter.xmlecore.XmlecorePackage
 * @generated
 */
public interface XmlecoreFactory extends EFactory {
	static public EMap<Object,EcoreAdapter> xmlMap = new BasicEMap<Object,EcoreAdapter>();
	
	/**
	 * The singleton instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	XmlecoreFactory eINSTANCE = edu.pku.sei.ocl.adapter.xmlecore.impl.XmlecoreFactoryImpl.init();

	EcoreAdapter create(Object node);
	
	void toXML(EXMLDocument doc);
	
	/**
	 * Returns a new object of class '<em>EXML Document</em>'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return a new object of class '<em>EXML Document</em>'.
	 * @generated
	 */
	EXMLDocument createEXMLDocument();
	
	//EXMLDocument createEXMLDocument(Document d);

	/**
	 * Returns a new object of class '<em>EXML Element</em>'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return a new object of class '<em>EXML Element</em>'.
	 * @generated
	 */
	EXMLElement createEXMLElement();

	//EXMLElement createEXMLElement(Element e);
	
	/**
	 * Returns a new object of class '<em>EXML Attribute</em>'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return a new object of class '<em>EXML Attribute</em>'.
	 * @generated
	 */
	EXMLAttribute createEXMLAttribute();
	
	//EXMLAttribute createEXMLAttribute(Attr node);

	/**
	 * Returns a new object of class '<em>EXMLCDATA Section</em>'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return a new object of class '<em>EXMLCDATA Section</em>'.
	 * @generated
	 */
	EXMLCDATASection createEXMLCDATASection();
	
	//EXMLCDATASection createEXMLCDATASection(CDATASection de);

	/**
	 * Returns a new object of class '<em>EXML Comment</em>'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return a new object of class '<em>EXML Comment</em>'.
	 * @generated
	 */
	EXMLComment createEXMLComment();
	
	//EXMLComment createEXMLComment(Comment de);

	/**
	 * Returns the package supported by this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the package supported by this factory.
	 * @generated
	 */
	XmlecorePackage getXmlecorePackage();



} //XmlecoreFactory
